package com.hou.houlymall.product.feign;

import com.hou.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author H
 * @create 2021-08-05 21:12
 */
@FeignClient("houlymall-ware")
public interface WareFeignService {

    /**
     * 远程调用，查看 skuid 是否有库存
     * @param skuIds ...
     * @return ...
     */
    @PostMapping("/ware/waresku/hasstock")
    R getSkuHasStock(@RequestBody List<Long> skuIds);
}
